import request from "../utils/request.js";

// 修改头像

const userInfo = 'members/information'


// 用户信息
export function getUserInfo(data) {
	return request({
		url: userInfo,
		method: 'get',
		data
	})
}

export function updateAvatar(data) {
	return request({
		url: 'members/avatar-change',
		method: 'post',
		data
	})
}
export function updateName(data) {
	return request({
		url: 'members/nickname-change',
		method: 'post',
		data
	})
}

export function getCard(data) {
	return request({
		url: 'members/bank-cards',
		method: 'get',
		data
	})
}

export function addCard(data) {
	return request({
		url: 'members/bank-cards/add',
		method: 'post',
		data
	})
}
export function unCard(data) {
	return request({
		url: 'members/bank-cards/delete',
		method: 'post',
		data
	})
}


export function getStyem(url,data) {
	return request({
		url,
		method: 'get',
		data
	})
}





